package com.yootk.service.impl;

import com.yootk.common.service.abs.AbstractService;
import com.yootk.common.util.factory.DAOFactory;
import com.yootk.dao.IMessageDAO;
import com.yootk.service.IMessageService;
import com.yootk.vo.Message;

import java.util.List;

/**
 * 业务层实现类
 */
public class MessageServiceImpl extends AbstractService implements IMessageService {
    private IMessageDAO messageDAO = DAOFactory.getDAOInstance("message.dao", IMessageDAO.class);

    @Override
    public List<Message> list() throws Exception {
        return this.messageDAO.findAll();
    }
}
